package leecode

func integerBreak(n int) (result int) {
	if n == 1 {
		return 1
	}
	if n == 2 {
		return 1
	}
	if n == 3 {
		return 2
	}
	result = 1
	for n > 4 {
		result *= 3
		n -= 3
	}
	result *= n
	return
}
